package com.lsa.cormen.ch15.samples;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class Cccc {

    /**
     * @param args
     */
    public static void main(String[] args) {
        
        List<Double> doubles = new ArrayList<Double>(Arrays.asList(0.0, -240.0, -229.0, -469.0, -221.0, -461.0, -454.0, -690.0, -214.0, -443.0, -683.0, -439.0, -679.0, -664.0, -904.0, -210.0, -450.0, -431.0, -671.0, -664.0, -900.0, -424.0, -662.0, -893.0, -653.0, -893.0, -888.0, -1114.0, -201.0, -441.0, -430.0, -670.0, -422.0, -660.0, -891.0, -415.0, -647.0, -884.0, -645.0, -885.0, -879.0, -1105.0, -421.0, -661.0, -646.0, -882.0, -875.0, -1101.0, -645.0, -874.0, -1098.0, -862.0, -1097.0, -1093.0, -1315.0, -192.0, -432.0, -413.0, -653.0, -406.0, -631.0, -871.0, -402.0, -642.0, -627.0, -864.0, -858.0, -1092.0, -618.0, -855.0, -1087.0, -844.0, -1084.0, -1080.0, -1306.0, -394.0, -634.0, -624.0, -863.0, -615.0, -848.0, -1084.0, -617.0, -846.0, -1077.0, -837.0, -1077.0, -1066.0, -1298.0, -607.0, -847.0, -833.0, -1073.0, -1062.0, -1297.0, -837.0, -1066.0, -1290.0, -1054.0, -1289.0, -1284.0, -184.0, -424.0, -413.0, -653.0, -405.0, -638.0, -403.0, -634.0, -867.0, -859.0, -853.0, -1088.0, -390.0, -625.0, -619.0, -854.0, -618.0, -840.0, -1075.0, -604.0, -835.0, -1068.0, -832.0, -1065.0, -1063.0, -1289.0, -605.0, -845.0, -830.0, -1059.0, -1286.0, -826.0, -1056.0, -1281.0, -1045.0, -1280.0, -1277.0, -376.0, -616.0, -599.0, -596.0, -816.0, -1055.0, -586.0, -826.0, -811.0, -1047.0, -1040.0, -1276.0, -809.0, -1038.0, -1269.0, -1028.0, -1268.0, -1258.0, -582.0, -817.0, -811.0, -1046.0, -810.0, -1032.0, -1267.0, -801.0, -1030.0, -1260.0, -1024.0, -1257.0, -1248.0, -795.0, -1031.0, -1020.0, -1249.0, -1245.0, -1017.0, -1241.0, -1236.0, -173.0, -413.0, -394.0, -387.0, -855.0, -374.0, -614.0, -608.0, -590.0, -822.0, -1060.0, -594.0, -834.0, -819.0, -1050.0, -1274.0, -818.0, -1039.0, -1279.0, -1037.0, -1271.0, -1267.0, -365.0, -605.0, -590.0, -587.0, -1041.0, -574.0, -809.0, -803.0, -1036.0, -802.0, -1024.0, -1257.0, -790.0, -1019.0, -1251.0, -1016.0, -1249.0, -1239.0, -787.0, -1023.0, -1012.0, -1237.0, -1010.0, -1239.0, -1229.0, -1456.0, -357.0, -597.0, -580.0, -576.0, -1039.0, -563.0, -802.0, -792.0, -788.0, -1006.0, -1241.0, -778.0, -1018.0, -1003.0, -1232.0, -998.0, -1229.0, -1219.0, -1453.0, -1450.0, -549.0, -789.0, -774.0, -769.0, -995.0, -1228.0, -766.0, -1001.0, -994.0, -1222.0, -1216.0, -1449.0, -982.0, -1211.0, -1442.0, -1208.0, -1441.0, -1430.0, -757.0, -990.0, -984.0, -1219.0, -984.0, -1206.0, -1440.0, -974.0, -1203.0, -1435.0, -1198.0, -1429.0, -1423.0, -969.0, -1205.0, -1195.0, -1423.0, -1419.0, -1190.0, -1416.0, -1409.0, -163.0, -396.0, -613.0, -389.0, -594.0, -825.0, -379.0, -592.0, -823.0, -805.0, -1037.0, -1266.0, -1260.0, -356.0, -588.0, -581.0, -787.0, -1018.0, -573.0, -796.0, -1008.0, -783.0, -1006.0, -1233.0, -1000.0, -1223.0, -1458.0, -1452.0, -347.0, -580.0, -797.0, -563.0, -776.0, -999.0, -989.0, -1216.0, -1448.0, -1440.0, -545.0, -780.0, -772.0, -765.0, -993.0, -986.0, -1210.0, -1215.0, -1439.0, -979.0, -1204.0, -1433.0, -1429.0, -755.0, -980.0, -1190.0, -966.0, -1201.0, -1190.0, -1418.0, -1416.0, -1181.0, -1405.0, -336.0, -569.0, -552.0, -777.0, -766.0, -993.0, -764.0, -979.0, -1213.0, -1204.0, -1442.0, -1439.0, -1433.0, -535.0, -761.0, -746.0, -975.0, -969.0, -1196.0, -960.0, -1189.0, -1425.0, -1185.0, -1410.0, -958.0, -1181.0, -1406.0, -1173.0, -1402.0, -1395.0, -520.0, -760.0, -753.0, -747.0, -737.0, -972.0, -961.0, -952.0, -1176.0, -1411.0, -948.0, -1182.0, -1174.0, -1397.0, -1168.0, -1392.0, -1389.0, -719.0, -953.0, -945.0, -941.0, -1167.0, -1395.0, -938.0, -1166.0, -1159.0, -1385.0, -1388.0, -1152.0, -1381.0, -1377.0, -928.0, -1155.0, -1157.0, -1383.0, -1153.0, -1378.0, -1142.0, -1371.0, -1368.0, -1140.0, -1374.0, -1363.0, -1355.0, -156.0, -378.0, -348.0, -570.0, -556.0, -772.0, -983.0, -1212.0, -1444.0, -1440.0, -340.0, -562.0, -532.0, -754.0, -964.0, -1189.0, -1422.0, -1411.0, -740.0, -961.0, -1173.0, -1402.0, -329.0, -552.0, -537.0, -753.0, -528.0, -744.0, -730.0, -945.0, -1170.0, -949.0, -1170.0, -1155.0, -1380.0, -1376.0, -513.0, -735.0, -721.0, -944.0, -1149.0, -1383.0, -712.0, -927.0, -922.0, -1150.0, -1378.0, -1145.0, -1362.0, -1365.0, -913.0, -1134.0, -1359.0, -1133.0, -1354.0, -1347.0, -319.0, -559.0, -524.0, -751.0, -729.0, -952.0, -945.0, -1166.0, -1391.0, -1159.0, -1380.0, -514.0, -740.0, -708.0, -936.0, -929.0, -921.0, -1149.0, -1142.0, -1371.0, -1136.0, -1360.0, -911.0, -1136.0, -1129.0, -1357.0, -1350.0, -1343.0, -492.0, -732.0, -716.0, -937.0, -930.0, -698.0, -924.0, -902.0, -1131.0, -1125.0, -1354.0, -1122.0, -1346.0, -1343.0, -1119.0, -1340.0, -1334.0, -687.0, -916.0, -909.0, -903.0, -900.0, -1128.0, -1121.0, -1114.0, -1339.0, -1110.0, -1338.0, -1331.0, -1324.0, -869.0, -1109.0, -1102.0, -1091.0, -1323.0, -1094.0, -1322.0, -1315.0, -1309.0, -1084.0, -1317.0, -1313.0, -1309.0, -1306.0, -1302.0, -150.0, -379.0, -375.0, -353.0, -582.0, -1027.0, -1256.0, -1238.0, -342.0, -567.0, -1429.0, -334.0, -548.0, -1420.0, -531.0, -323.0, -526.0, -1412.0, -517.0, -507.0, -723.0, -704.0, -323.0, -539.0, -529.0, -515.0, -731.0, -723.0, -930.0, -1368.0, -506.0, -713.0, -698.0, -915.0, -1345.0, -905.0, -1118.0, -497.0, -705.0, -1140.0, -917.0, -688.0, -896.0, -1120.0, -1328.0, -1103.0, -681.0, -907.0, -889.0, -1111.0, -1329.0, -1100.0, -1322.0, -1305.0, -1088.0, -1078.0, -1307.0, -1295.0, -1291.0, -306.0, -498.0, -715.0, -490.0, -687.0, -896.0, -1330.0, -479.0, -690.0, -678.0, -1315.0, -1101.0, -1301.0, -1292.0, -479.0, -674.0, -904.0, -879.0, -1105.0, -1095.0, -1316.0, -885.0, -1075.0, -1071.0, -1305.0, -1294.0, -1294.0, -1283.0, -1275.0, -881.0, -866.0, -1087.0, -1085.0, -1069.0, -1284.0, -1273.0, -1265.0, -1076.0, -1055.0, -1285.0, -1266.0, -1247.0, -149.0, -359.0, -350.0, -341.0, -543.0, -1422.0, -333.0, -1415.0, -525.0, -1399.0, -319.0, -511.0, -720.0, -500.0, -689.0, -492.0, -701.0, -684.0, -669.0, -862.0, -1294.0, -305.0, -489.0, -475.0, -667.0, -876.0, -663.0, -890.0, -845.0, -1067.0, -1054.0, -1273.0, -648.0, -853.0, -840.0, -1061.0, -1044.0, -1275.0, -1256.0, -1254.0, -1242.0, -1228.0, -1446.0, -1439.0, -299.0, -491.0, -483.0, -680.0, -473.0, -665.0, -472.0, -664.0, -871.0, -1260.0, -1437.0, -455.0, -855.0, -639.0, -1253.0, -1429.0, -139.0, -368.0, -340.0, -312.0, -308.0, -483.0, -295.0, -476.0, -464.0, -639.0, -1438.0, -289.0, -462.0, -461.0, -636.0, -445.0, -288.0, -480.0, -458.0, -650.0, -444.0, -438.0, -631.0, -622.0, -814.0, -135.0, -327.0, -291.0, -284.0, -468.0, -447.0, -440.0, -603.0, -434.0, -274.0, -423.0));
        Collections.sort(doubles, new Comparator<Double>() {
            @Override
            public int compare(Double o1, Double o2) {
                double result = o1 - o2;
                if (result > 0) {
                    return 1;
                }
                else if (result < 0) {
                    return -1;
                }
                else {
                    return 0;
                }
            }
        });
        
        System.out.println(doubles);
    }

}
